import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import piniaPersist from "pinia-plugin-persist";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';

document.body.style.width = document.body.clientWidth + 'px';

createApp(App)
    .use(createPinia().use(piniaPersist))
    .use(ElementPlus, {locale: zhCn})
    .use(router)
    .mount('#app')
